package collegemenu;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import java.awt.BorderLayout;
import javax.swing.JButton;
import java.awt.Dimension;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
// 자격증정보 창
public class licensemain extends JPanel {
	

	/**
	 * Create the panel.
	 */
	public licensemain() {
		table();
		panel();

	}


private void table(){
	setLayout(new BorderLayout(0, 0));
	String[] colwmn ={"자격증명","급수","취득일자","취득번호","시험장소"};
	String[][] row = {{"GTQ","A","2013-12-11","09222213","상공회의소"},
					{"GTQ","A","2013-12-11","09222213","상공회의소"},
					{"GTQ","A","2013-12-11","09222213","상공회의소"},
					{"GTQ","A","2013-12-11","09222213","상공회의소"}};	
	
	JLabel lblNewLabel = new JLabel("자격증 취득내역");
	lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
	add(lblNewLabel, BorderLayout.NORTH);

	
	
	
	JTable table = new JTable(row,colwmn);
	JScrollPane scrollPane = new JScrollPane(table);
	scrollPane.setPreferredSize(new Dimension(452, 200));
	add(scrollPane);
	
}
private void panel(){
	JPanel panel_1 = new JPanel();
	panel_1.setPreferredSize(new Dimension(0, 30));
	add(panel_1, BorderLayout.SOUTH);
	panel_1.setLayout(new BorderLayout(0, 0));
	
	JPanel panel = new JPanel();
	panel_1.add(panel, BorderLayout.EAST);
	
	JButton btnNewButton = new JButton("등록");
	panel.add(btnNewButton);
	
	JButton btnNewButton_1 = new JButton("확인");
	panel.add(btnNewButton_1);
}
}